import numpy as np

no_map = np.load('saved_no_delta_LLH_map.npy',allow_pickle=True)
io_map = np.load('saved_io_delta_LLH_map.npy',allow_pickle=True)

no_values = np.array([no_map.item()[key] for key in ['sin2_theta23','deltam232','deltallh']]).T
np.savetxt('normal_ordering_delta_LLH_map.txt',no_values,fmt='%.9f')

io_values = np.array([io_map.item()[key] for key in ['sin2_theta23','deltam232','deltallh']]).T
np.savetxt('inverted_ordering_delta_LLH_map.txt',io_values,fmt='%.9f')

print(no_map.item()['bfp_sin2th23'],no_map.item()['bfp_dm232'])
print(io_map.item()['bfp_sin2th23'],io_map.item()['bfp_dm232'])
